#define WCOM_UBI_PARTITION_APP

#include <env/pg-wcom/common.env>

EEprom_ivm=pca9547:70:9
boot=bootm $load_addr_r - $fdt_addr_r
checkfdt=true
cramfsloadfdt=cramfsload $fdt_addr_r fdt_0x${IVM_BoardId}_0x${IVM_HWKey}.dtb
ethrotate=no
hwconfig=devdis:esdhc,usb3,usb2,sata,sec,dcu,duart2,qspi,can1,can2_4,ftm2_8,i2c2_3,sai1_4,lpuart2_6,asrc,spdif,lpuart1,ftm1
netdev=eth2

newenv=protect off CONFIG_ENV_ADDR_REDUND +0x40000 &&
       erase CONFIG_ENV_ADDR_REDUND +0x40000 &&
       protect on CONFIG_ENV_ADDR_REDUND +0x40000

set_fdthigh=true

update=protect off CONFIG_SYS_MONITOR_BASE +${filesize} &&
       erase CONFIG_SYS_MONITOR_BASE +${filesize} &&
       cp.b ${load_addr_r} CONFIG_SYS_MONITOR_BASE ${filesize} &&
       protect on CONFIG_SYS_MONITOR_BASE +${filesize}

update-nor=protect off CONFIG_SYS_FLASH_BASE +${filesize} &&
	   erase CONFIG_SYS_FLASH_BASE +${filesize} &&
	   cp.b ${load_addr_r} CONFIG_SYS_FLASH_BASE ${filesize} &&
	   protect on CONFIG_SYS_MONITOR_BASE +0x100000

uimage=uImage
